package com.weihuagu.model;
import java.io.File;
/**
import net.sourceforge.tess4j.*;
**/
public class TestTess4j{
	/**
    public void ocrTest() {
        // ImageIO.scanForPlugins(); // for server environment
        File imageFile = new File("/home/better/workspace/androidocr/src/com/weihuagu/model/test1.png");
        ITesseract instance = new Tesseract(); // JNA Interface Mapping
      

        try {
            String result = instance.doOCR(imageFile);
            System.out.println(result);
        } catch (TesseractException e) {
            System.err.println(e.getMessage());
        }
    }
    **/
}
